﻿namespace FluentMvc
{
    using System;
    using System.Collections.Generic;
    using System.Web.Mvc;

    internal class ValidationSetting<TModel>
    {
        internal string PropertyName {get;set;}
        internal FluentValidator Rule { get; set; }
        internal Func<TModel, bool> CustomValidation { get; set; }
        internal string Message { get; set; }
        internal Func<string> GetMessage { get; set; }
        internal Func<TModel, bool> When { get; set; }
        internal Func<TModel, bool> Ignore { get; set; }
        internal IEnumerable<ModelClientValidationRule> ClientValidationRules { get; set; }
        internal bool StopChainOnFail { get; set; }
    }
}